From: Claudio Cambra Date: Tue, 29 Apr 2025 04:52:13 +0000 (+0800) Subject: feat(mac-crafter): Add entitlements path option to codesign command X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1^2~13^2~1^2~17^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=267d333055acb3f9053d5d0b75bbcd2815879c33;p=nextcloud-desktop.git feat(mac-crafter): Add entitlements path option to codesign command Signed-off-by: Claudio Cambra --- diff --git a/admin/osx/mac-crafter/Sources/main.swift b/admin/osx/mac-crafter/Sources/main.swift index f659c82c5..adcbd77d1 100644 --- a/admin/osx/mac-crafter/Sources/main.swift +++ b/admin/osx/mac-crafter/Sources/main.swift @@ -286,11 +286,19 @@ struct Codesign: ParsableCommand { @Option(name: [.short, .long], help: "Code signing identity for desktop client and libs.") var codeSignIdentity: String + @Option(name: [.short, .long], help: "Entitlements to apply to the app bundle.") + var entitlementsPath: String? + mutating func run() throws { let absolutePath = appBundlePath.hasPrefix("/") ? appBundlePath : "\(FileManager.default.currentDirectoryPath)/\(appBundlePath)" - try codesignClientAppBundle(at: absolutePath, withCodeSignIdentity: codeSignIdentity) + + try codesignClientAppBundle( + at: absolutePath, + withCodeSignIdentity: codeSignIdentity, + usingEntitlements: entitlementsPath + ) } }